package com.zte.shopping.mapper.attache;

import com.zte.shopping.entity.Attache;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Repository
public interface AttacheMapper {
    Attache selectUserHeadImage(@Param("fileType") String attacheFileTypeHeadImage,
                                @Param("userId") Integer userId);

    void insertAttache(Attache attache);

    void updateAttache(Attache selectAttache);

    List<Attache> selectUserLifeImages(@Param("fileType") String attacheFileTypeLifeImage,
                                       @Param("userId") Integer userId);

    void deletLifeImg(@Param("imgPath") String imgPath,
                      @Param("userId") Integer userId);
}
